package cn.wolfcode.controller;

import cn.wolfcode.domain.Destination;
import cn.wolfcode.domain.DetailsOfScenicSpots;
import cn.wolfcode.domain.ScenicSpot;
import cn.wolfcode.service.IDestinationService;
import cn.wolfcode.service.IDetailsOfScenicSpotsService;
import cn.wolfcode.service.IScenicSpotService;
import cn.wolfcode.util.JsonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description: 景点详情控制器类
 * @Author: 伍家钰
 * @Date: 2020/8/12 19:16
 * @Version: 1.0
 */
@RestController
@RequestMapping("/detailsOfScenicSpots")
public class DetailsOfScenicSpotsController {
    @Resource
    private IDetailsOfScenicSpotsService detailsOfScenicSpotsService;

    @GetMapping("list")
    public Object list(String id) {
        DetailsOfScenicSpots d = detailsOfScenicSpotsService.get(id);
        return JsonResult.success(d);
    }
}
